package com.ea.eadp.nexus.test.pageDefinition.console;

import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;


public class ExitTosPage extends ConsoleBasePage {

    public ExitTosPage(WebDriver driver) {
        super(driver, DeclineTosPage.class, "noBtn");
    }

    public void selectExit() throws Exception {
        if (driver.findElement(By.id("noBtn")).isEnabled()) {
            this.sendControllerKey(Keys.UP);
        }
        this.sendControllerKey('A');
    }
}